package cn.com.yiqi.wsc.common;

/**
 * @author 何刚
 * @ClassName: ${class}
 * @Description: TODO
 * @date 2017/2/24
 */
public class BaseCriteria {

    private String name;
    //默认是从第一页开始
    private int currentPage = 1;
    private int pageSize = 10;

    private int isAll;//0：分页，1：不分分页

    public int getIsAll() {
        return isAll;
    }

    public void setIsAll(int isAll) {
        this.isAll = isAll;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public boolean isGetAll() {
        return isAll == 1;
    }
}
